package com.xy.springboot.game.task.action;

import com.iohao.game.action.skeleton.annotation.ActionController;
import com.iohao.game.action.skeleton.annotation.ActionMethod;
import com.iohao.game.action.skeleton.core.flow.FlowContext;
import com.xy.springboot.game.common.constant.cmd.TaskCmdModule;
import com.xy.springboot.game.common.data.LoginVerifyData;
import com.xy.springboot.game.common.data.UserLoginData;
import com.xy.springboot.game.task.service.TaskService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
@Slf4j
@Component
@AllArgsConstructor
@ActionController(TaskCmdModule.CMD)
public class LoginAction {
    private final TaskService taskService;
    @ActionMethod(TaskCmdModule.LOGIN)
    public UserLoginData login(LoginVerifyData loginVerify, FlowContext flowContext) {
        return taskService.login(loginVerify,flowContext);
    }
}
